import { POST as post, GET as get } from '../axios.config.js'

const base = config.ip
const projectName = '/topnet-assess'

// -获取查询时间下拉列表
export const getlistYearQuarter = p => get(`${base}${projectName}/intelligent-analysis/listYearQuarter`, p)

// -获取全局个人绩效页面数据
export const getIndividualPerformance = p =>
  get(`${base}${projectName}/intelligent-analysis/getIndividualPerformance`, p)

// -判断是否参与指定季度考核
export const checkIsAssessment = p => get(`${base}${projectName}/intelligent-analysis/checkIsAssessment`, p)

// -获取参与考核的机构列表
export const getAssessOrganList = p => get(`${base}${projectName}/intelligent-analysis/getAssessOrganList`, p)

// -根据机构获取人员列表
export const getAssessUserList = p => get(`${base}${projectName}/intelligent-analysis/getAssessUserList`, p)

// -获取个人基本信息
export const getBasicInfo = p => post(`${base}${projectName}/intelligent-analysis/getBasicInfo`, p)

// -获取个人考核结果
export const getPersonAssessResult = p => post(`${base}${projectName}/intelligent-analysis/getPersonAssessResult`, p)

// -年度个人工作盘点--工作建议列表
export const getRecordNoteListByType = p => post(`${base}${projectName}/intelligent-analysis/getSuggestion`, p)

// -年度个人工作盘点--工作纪实
export const getlistRecordNoteByType = p => post(`${base}${projectName}/intelligent-analysis/listRecordNoteByType`, p)

// -年度个人工作盘点--加减分
export const getAddSubPoints = p => post(`${base}${projectName}/intelligent-analysis/getAddSubPoints`, p)

// -获取指定年度的平时考核得分
export const getlistYearAssessTotalScore = p =>
  get(`${base}${projectName}/intelligent-analysis/listYearAssessTotalScore`, p)

// -获取对比的人员和机构列表
export const getCompareOrganUserList = p => get(`${base}${projectName}/intelligent-analysis/getCompareOrganUserList`, p)

// -获取对比的人员和机构列表
export const getCompareResultList = p => post(`${base}${projectName}/intelligent-analysis/getCompareResultList`, p)
